package com.cmb.abs.orders;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * <pre>
 * 如果需要导出为war方式运行时
 * 以war运行的前提：
 * 1.修改 pom.xml 中 package为war
 * 2.重新编译打包 mvn clean package
 * 3.生成的war包可部署到web容器(如：tomcat）中运行
 * </pre>
 *
 * @author Shiyunlai
 */
public class OrdersServiceServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(OrdersServiceApplication.class);
    }
}
